from django.shortcuts import *
from django.http import HttpResponseRedirect, HttpResponse, HttpResponseNotAllowed
from django.template.context import RequestContext
from django.conf import settings
from django.utils.html import escape
from django.contrib.auth.decorators import login_required
from taskize.django_gtd.models import *


def Splash(request):
    """
    Main splash page
    """
        
    return render_to_response('splash.html',
                              {},
                              context_instance=RequestContext(request))



@login_required
def Home(request):
    """
    User Home
    """

    # Get list of possible views
    savedViews = SavedView.objects.filter(owner=request.user)
    
    import pdb
    pdb.set_trace()
    
    return render_to_response('home.html',
                              {'savedViews':savedViews},
                              context_instance=RequestContext(request))
